package com.insurance.common.enums;

/**
 * @version 1.0
 * @date 2020/9/20
 **/
public enum ResponseEnum {

    SUCCESS(0, "成功"),
    ERROR(1, "失败"),
    SYSTEM_ERROR(-1, "系统繁忙");

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResponseEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
